package metalink.admin;

import java.util.ArrayList;

import vo.mixed.CourseListVo;
import vo.mixed.DepartmentListVo;

import model.admin.GetBatchListMo;
import model.admin.GetCourseListMo;

import com.opensymphony.xwork2.ActionSupport;

public class GetBatchDegreeList extends ActionSupport{

	int degree_id;
	int batch_id;
	ArrayList<CourseListVo> course_list;
	ArrayList<DepartmentListVo> department_list;
	public int getDegree_id() {
		return degree_id;
	}
	public void setDegree_id(int degree_id) {
		this.degree_id = degree_id;
	}
	public int getBatch_id() {
		return batch_id;
	}
	public void setBatch_id(int batch_id) {
		this.batch_id = batch_id;
	}
	public ArrayList<CourseListVo> getCourse_list() {
		return course_list;
	}
	public void setCourse_list(ArrayList<CourseListVo> course_list) {
		this.course_list = course_list;
	}
	public ArrayList<DepartmentListVo> getDepartment_list() {
		return department_list;
	}
	public void setDepartment_list(ArrayList<DepartmentListVo> department_list) {
		this.department_list = department_list;
	}
	public String execute(){
		return SUCCESS;
	}
	public String GetBatchDegreeDepartmentList() throws Exception{
		GetBatchListMo model = new GetBatchListMo();
		department_list= model.getDepartmentList(batch_id, degree_id);
		return SUCCESS;
	} 
	public String GetBatchDegreeCourseList() throws Exception{
		GetCourseListMo c = new GetCourseListMo();
		course_list=c.getDegreeDepartmentCourseList(degree_id,0,batch_id);
		return SUCCESS;
	} 

}
